<include file="public@header" />
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-page-header">
				<div class="layui-card">
					<div class="layui-page-header-content">
						<div class="layui-card-body">
                            <div class="layui-ui-page-header-title" >
                                入驻申请
                            </div>
                        </div>
						<div class="layui-tab layui-tab-brief">
							<ul class="layui-tab-title">
								<li class="layui-this"><a>列表</a></li>
							</ul>
						</div>
					</div>
				</div>
			</div>

			<div class="layui-page-content">
				<div class="layui-card">
					<div class="layui-card-body">
						<form class="layui-form" method="get" action="{:url('merchant.enter/index')}">
							<div class="layui-form-item layuiadmin-card-text" style="margin-bottom: 0;">
								<div class="layui-inline">
									<label class="layui-form-label">状态</label>
									<div class="layui-input-inline">
										<select class="layui-input" name="status">
											<option value="">全部</option>
											<volist name="status" id="vo">
											<option value="{$key}" <if condition="input('request.status') neq '' && input('request.status') eq $key">selected</if>>{$vo}</option>
											</volist>
										</select>
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">类型</label>
									<div class="layui-input-inline">
										<select class="layui-input" name="type">
											<option value="">全部</option>
											<volist name="type" id="vo">
											<option value="{$key}" <if condition="input('request.type') neq '' && input('request.type') eq $key">selected</if>>{$vo}</option>
											</volist>
										</select>
									</div>
								</div>

								<div class="layui-inline">
									<label class="layui-form-label">时间</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input js-bootstrap-date" name="start_time"
											   value="{:input('request.start_time')}"
											   autocomplete="off" placeholder="开始日期">
									</div>
									<div class="layui-form-mid">-</div>
									<div class="layui-input-inline">
										<input type="text" class="layui-input js-bootstrap-date" name="end_time"
											   value="{:input('request.end_time')}"
											   autocomplete="off" placeholder="结束日期">
									</div>
								</div>

								<div class="layui-inline">
									<div class="layui-input-inline">
										<input type="submit" class="layui-btn btn-primary" value="搜索" />
										<a class="layui-btn layui-btn-danger btn-danger" href="{:url('merchant.enter/index')}">清空</a>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>

			<div class="layui-page-content js-check-wrap">
				<div class="layui-card">
					<div class="layui-card-body">
						<form method="post" class="js-ajax-form" action="{:url('merchant.enter/listOrder')}">
							<div class="table-actions">
								<button class="layui-btn layui-btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
							</div>
							<table class="layui-table table-hover table-bordered" lay-even lay-size="lg" id="menus-table">
								<thead>
									<tr>
										<th>ID</th>
										<th>名称</th>
										<th>手机号</th>
										<th>类型</th>
										<th>状态</th>
										<th align="center">{:lang('ACTIONS')}</th>
									</tr>
								</thead>
								<tbody>
								<foreach name="list" item="vo">
									<tr>
										<td>{$vo['id']}</td>
										<td>{$vo['name']}</td>
										<td>{$vo['phone']}</td>
                                        <td>{$vo['type']}</td>
                                        <td>{$vo['status']}</td>
										<td>
                                            <a class="layui-bo layui-bo-checked layui-bo-small js-ajax-delete" data-msg="确定此项操作?" href='{:url("merchant.enter/updateStatus",array("id"=>$vo["id"],"status"=>1))}'>处理</a>
<!--                                            <a class="layui-bo layui-bo-checked layui-bo-small js-ajax-delete" href='{:url("merchant.enter/updateStatus",array("id"=>$vo["id"],"status"=>-1))}'>拒绝</a>-->
										</td>
									</tr>
								</foreach>
								</tbody>
							</table>
							<div class="pagination">{$page}</div>

						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<include file="public@script"/>
	<script>
		$(document).ready(function() {
			Wind.css('treeTable');
			Wind.use('treeTable', function() {
				$("#menus-table").treeTable({
					indent : 20
				});
			});
		});
	</script>
</body>
</html>